package com.p2p.front.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.p2p.base.page.PageVo;
import com.p2p.front.dal.dao.LoanApplyDao;
import com.p2p.front.service.ApplyLoanService;
import com.p2p.front.web.form.LoanApplyForm;

/**
 * @author wyj
 */
@Service("applyLoanService")
public class ApplyLoanServiceImpl implements ApplyLoanService {

	@Resource 
	LoanApplyDao loanapplyDao;
	
	@Override
	public void saveLoanApplyInfo(LoanApplyForm form) {
		loanapplyDao.save(form);
	}

	@Override
	public PageVo list(PageVo form) {
		List list=loanapplyDao.listApplyLoanInfo(form);
		form.setList(list);
		return form;
//		return loanapplyDao.listApplyLoanInfo(form);
	}

}
